<!--二维平面类-->
<template>
  <div>
    <FunctionlUnitFrame @closePane="closePane">
      <template slot="title">三维立体</template>
      <template slot="content">
        <!--三维平面类型-->
        <table class="swpmtypetable " :class="swpmCategoryNum=='1'?'':'nodisplay'">
          <tr>
            <td :class="swpmtypenum==1?'swpmtypetableTdactive':''" @click="swpmtypeTdC('txt',1)"><img src="../../assets/img/Plotting/wall.jpg" height="63" width="63"/></td>
            <td :class="swpmtypenum==2?'swpmtypetableTdactive':''" @click="swpmtypeTdC('img',2)"><img src="../../assets/img/Plotting/extrudedPolygon.jpg" height="63" width="63"/></td>
            <td :class="swpmtypenum==3?'swpmtypetableTdactive':''" @click="swpmtypeTdC('img',3)"><img src="../../assets/img/Plotting/extrudedRectangle.jpg" height="63" width="63"/></td>
          </tr>
          <tr>
            <td :class="swpmtypenum==4?'swpmtypetableTdactive':''" @click="swpmtypeTdC('img',4)"><img src="../../assets/img/Plotting/extrudedCircle.jpg" height="63" width="63"/></td>
            <td :class="swpmtypenum==5?'swpmtypetableTdactive':''" @click="swpmtypeTdC('img',5)"><img src="../../assets/img/Plotting/extrudedEellipse.jpg" height="63" width="63"/></td>
            <td :class="swpmtypenum==6?'swpmtypetableTdactive':''" @click="swpmtypeTdC('img',6)"><img src="../../assets/img/Plotting/ellipsoid.jpg" height="63" width="63"/></td>
          </tr>
        </table>
        <!--三维平面坐标-->
        <table class="swpmpointtable  " :class="swpmCategoryNum=='2'?'':'nodisplay'">
          <tr>
            <th colspan="2">批量修改高程（辅助功能）</th>
          <tr>
            <td>在原值上增加</td><td>
            <input value=""/>
          </td>
          </tr>
          <tr>
            <td>全部修改为</td><td>
            <input value=""/></td>
          </tr>
          <tr>
            <th colspan="2">-坐标列表</th>
          </tr>
          <tr>
            <td>经度：</td>
            <td>
              <input value="115.56789"/>
            </td>
          </tr>
          <tr>
            <td>维度：</td>
            <td>
              <input value="31.5232"/>
            </td>
          </tr>
          <tr>
            <td colspan="2">
              <el-button type="primary">定位</el-button>
            </td>
          </tr>
        </table>
        <!--三维平面样式-->
        <table class="swpmcsstable " :class="swpmCategoryNum+swpmtype=='3img'?'':'nodisplay'">
          <tr>
            <th colspan="2">-样式信息</th>
          </tr>
          <tr>
            <td>类型</td><td>拉伸面</td>
          </tr>
          <tr>
            <td>是否填充</td><td> <el-switch v-model="switcVlaue" active-color="#13ce66" inactive-color="#ff4949">
          </el-switch></td>
          </tr>
          <tr>
            <td>颜色</td>
            <td>
              <colorPicker v-model="color" />
            </td>
          </tr>
          <tr>
            <td>透明度</td><td><el-slider v-model="swpmOpacity" style="width: 80%"></el-slider></td>
          </tr>
          <tr>
            <td>是否边框</td><td>
            <el-switch v-model="switcVlaue" active-color="#13ce66" inactive-color="#ff4949">
            </el-switch>
          </td>
          </tr>
          <tr>
            <td>边框颜色</td><td>
            <colorPicker v-model="color" /></td>
          </tr>
          <tr>
            <td>边框透明度</td>
            <td><el-slider v-model="swpmOpacity" style="width: 80%"></el-slider></td>
          </tr>
          <tr>
            <td>高度</td><td>
            <input value=""/>
          </td>
          </tr>
          <tr>
            <td>层级顺序</td><td>
            <input value=""/>
          </td>
          </tr>
          <tr>
            <th colspan="2">-属性信息</th>
          <tr>
            <td>名称</td><td>
            <input value=""/>
          </td>
          </tr>
          <tr>
            <td>备注</td><td>
            <input value=""/></td>
          </tr>
        </table>
        <!--三维平面样式-->
        <table class="swpmcsstable " :class="swpmCategoryNum+swpmtype=='3txt'?'':'nodisplay'">
          <tr>
            <th colspan="2">-样式信息</th>
          </tr>
          <tr>
            <td>类型</td><td>文字</td>
          </tr>
          <tr>
            <td>内容</td><td>
            <input/>
          </td>
          </tr>
          <tr>
            <td>颜色</td>
            <td>
              <colorPicker v-model="color" />
            </td>
          </tr>
          <tr>
            <td>透明度</td><td><el-slider v-model="ewpmOpacity" style="width: 80%"></el-slider></td>
          </tr>
          <tr>
            <td>字体大小</td><td>  <input value=""/>
          </td>
          </tr>
          <tr>
            <td>是否衬色</td><td>
            <el-switch v-model="switcVlaue" active-color="#13ce66" inactive-color="#ff4949">
            </el-switch>
          </td>
          </tr>
          <tr>
            <td>衬色颜色</td>
            <td>
              <colorPicker v-model="color" />
            </td>
          </tr>
          <tr>
            <td>衬色宽度</td><td>
            <input/>
          </td>
          </tr>
          <tr>
            <td>是否背景</td><td>
            <el-switch v-model="switcVlaue" active-color="#13ce66" inactive-color="#ff4949">
            </el-switch></td>
          </tr>
          <tr>
            <td>是否加粗</td><td>
            <el-switch v-model="switcVlaue" active-color="#13ce66" inactive-color="#ff4949">
            </el-switch></td>
          </tr>
          <tr>
            <td>是否斜体</td><td>
            <el-switch v-model="switcVlaue" active-color="#13ce66" inactive-color="#ff4949">
            </el-switch></td>
          </tr>
          <tr>
            <td>是否按规矩缩放</td><td>
            <el-switch v-model="switcVlaue" active-color="#13ce66" inactive-color="#ff4949">
            </el-switch></td>
          </tr>
          <tr>
            <td>是否按规矩显示</td><td>
            <el-switch v-model="switcVlaue" active-color="#13ce66" inactive-color="#ff4949">
            </el-switch></td>
          </tr>
          <tr>
            <th colspan="2">-属性信息</th>
          <tr>
            <td>名称</td><td>
            <input value=""/>
          </td>
          </tr>
          <tr>
            <td>备注</td><td>
            <input value=""/></td>
          </tr>
        </table>
        <!--三维平面tab-->
        <table class="swpmCategory">
          <tr>
            <td @click="swpmCategoryTdC(1) "  :class="swpmCategoryNum=='1'?'active':''">类型</td>
            <td @click="swpmCategoryTdC(2) " :class="swpmCategoryNum=='2'?'active':''">坐标点</td>
            <td @click="swpmCategoryTdC(3)" :class="swpmCategoryNum=='3'?'active':''" >属性</td>
          </tr>
        </table>

      </template>
    </FunctionlUnitFrame>
  </div>
</template>

<script>
  import FunctionlUnitFrame from '@/components/FunctionalUnit/FunctionlUnitFrame'
  export default {
    name: "ThreeDimensional",
    data(){
      return {
        swpmOpacity:100,
        switcVlaue:true,
        swpmCategoryNum:'1',
        swpmtype:'img',
        color: '#ff0000',
        swpmtypenum:0
      }
    },
    components:{
      'FunctionlUnitFrame':FunctionlUnitFrame
    },
    methods:{
      closePane(){
        this.$emit('closePane',false);
      },
      swpmtypeTdC(type,num){
        this.swpmtype=type;
        this.swpmtypenum=num;
      },
      swpmCategoryTdC(num){
        this.swpmCategoryNum=num;
      }
    },

  }
</script>

<style scoped>
  .layerpanel{
    width: 320px;
    height: 850px;
    top: 30px;
  }
  .m-colorPicker {
    position: relative;
    text-align: left;
    font-size: 14px;
    display: inline-block;
    z-index: 99;
  }
  table tr td{
    height: 45px;
    font-size: 10px;
    padding-left: 15px;
  }
  table tr td:first-child{
    width: 30%;
  }
  table tr td:last-child{
    width: 70%;
  }
  table tr td input {
    height: 38px;
    background-color:  rgba(45,52,68,.5);
    border: 1px solid rgba(237, 255, 255,1);
    border-radius: 5px;
    width: calc(100% - 5px);
  }
  table tr th{
    height: 30px;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial;
    cursor: pointer;
    text-align: left;
    background-color: rgba(28, 59, 58,.6);
  }
  /********点类型样式*********/
  .swpmtypetable{
    width: 100%;
    border-collapse: separate;
    border-spacing:18px;
  }
  .swpmtypetable tr td{
    padding-left: 0px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid white;
    width: 33.33%;
    cursor: pointer;
    height: 70px;
  }
  .swpmtypetable tr td:hover{
    border: 1px solid blue;
  }
  .swpmtypetableTdactive{
    border: 1px solid blue !important;
  }
  .nodisplay{
    display: none;
  }
  /***********点坐点定位************/
  .swpmpointtable{
    width: 100%;
    border-collapse: collapse;
  }
  .swpmpointtable tr th,td{
    vertical-align: middle;
    text-align: left;
    cursor: pointer;
  }
  .swpmpointtable tr td{
    padding-left: 15px;
    border: 1px solid rgba(237, 255, 255,1);
  }
  .swpmpointtable tr td:first-child{
    width: 30%;
  }
  .swpmpointtable tr td:nth-child(2){
    width: 70%;
  }
  table tr td:nth-child(2) input:focus{
    border: .5px solid blue;
  }
  .swpmpointtable tr:last-child td{
    height: 100px;
    border: none;
    text-align: center;
  }
  /***********点样式*****************/
  .swpmcsstable{
    width: 100%;
    border-collapse: collapse;
  }
  .swpmcsstable tr td{
    text-align: left;
    padding-left: 15px;
    border: 1px solid rgba(237, 255, 255,1);
  }
  .swpmcsstable tr td:first-child{
    width: 30%;
  }
  .swpmcsstable tr td:last-child{
    width: 70%;
  }
  /***********点tab*******************/
  .swpmCategory{
    /*width: 100%;*/
    height: 40px;
    position: fixed;
    bottom: 0px;
    border-collapse: separate;
    border-spacing: 6px;
  }
  .swpmCategory tr td{
    padding-left: 0px;
    height: 40px;
    width: 60px !important;
    color: #dff0d8;
    cursor: pointer;
    border: 1px solid rgba(45,52,68,1);
    text-align: center;
  }

  .swpmCategory .nodisplay{
    display: none;
  }
  .swpmCategory tr td:hover{
    border: 1px solid  gray;
  }
  .active{
    border: 1px solid  gray !important;
  }


  @media screen and (max-width: 500px) {
    .layerpanel {
      width: 200px;
      height: 580px;
      top: 60px !important;
    }

    table tr td img {
      width: 50px;
      height: 50px;
    }

    table tr td {
      height: 25px;
      font-size: 10px;
      padding-left: 5px;
    }

    table tr td input {
      height: 20px;
    }
    /********点类型样式*********/
    .swpmtypetable{
      width: 100%;
      border-collapse: separate;
      border-spacing:3px;
    }
    .swpmtypetable tr td{
      text-align: center;
      vertical-align: middle;
      border: 1px solid white;
      width: 33.33%;
      cursor: pointer;
      height: 50px;
    }
    /***********点tab*******************/
    .swpmCategory{
      /*width: 100%;*/
      height: 40px;
      position: fixed;
      bottom: 0px;
      border-collapse: separate;
      border-spacing: 6px;
    }
    .swpmCategory tr td{
      height: 20px !important;
      width: 40px !important;
      color: #dff0d8;
      cursor: pointer;
      border: 1px solid rgba(45,52,68,1);
      text-align: center;
    }

  }
</style>
